package com.hbird.controller;

import com.hbird.service.impl.UserGeneratorServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * MyBatis代码生成器测试
 * 实体类UserGenerator
 */
@Controller
@RequestMapping(value = "generator")
public class MyBatisGeneratorController {

    @Autowired
    UserGeneratorServiceImpl service;

    /**
     * 输出字符串测试
     * http://localhost:8080/helloboot
     * @return
     */
    @RequestMapping("/test")
    public String helloTest(){
        service.getUser();
        return "Hello！";
    }

}